package cn.itsource.config;

import cn.itsource.util.UTCDateConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.convert.converter.Converter;

import java.util.Date;

@Configuration
public class AppConfig {
    @Bean
    public Converter<Date, Date> utcDateConverter() {
        return new UTCDateConverter();
    }
}